import { cp } from "./base";

interface OtaDataReq {
    address: number,
    data: Uint8Array,
}

export async function otaWithData(address: number, data: Uint8Array) {
    let req: OtaDataReq = {
        address,
        data
    };
    await cp.post('/ota_with_data', req);
}

